package com.example.comm.designModel.singleModel;


/**
 * 懒汉式单例模式
 */
public class LazySingleCase {
    private LazySingleCase(){

    }

    private static LazySingleCase lazySingleCase = null;

    public static LazySingleCase getInstance(){
        if (lazySingleCase == null){
            lazySingleCase = new LazySingleCase();
        }
        return lazySingleCase;
    }

}
